<template>
	<div class="tmpl">
		<div class="subvue">
			{{msg}}
		<br/>
			{{tosubdata}}
		</div>

	</div>
</template>

<script>
	export default{
		data(){
			return{
				msg:'这是sub.vue中的内容'
			}
		},
		props:['tosubdata']
	}
</script>

<style>
	.subvue{
		border: 1px solid green;
	}
</style>